﻿using System;
using System.Collections.Generic;
using FluentValidation.Attributes;
using Nop.Web.Framework.Mvc;
using Nop.Web.Models.Media;
using Nop.Web.Models.ShareBuy;
//using Nop.Web.Validators.News;

namespace Nop.Web.Models.ShareBuy
{
    //[Validator(typeof(NewsItemValidator))]
    public class ShareBuyItemModel : BaseNopEntityModel
    {
        public ShareBuyItemModel ()
        {
            ShareBuyCommentModels = new List<ShareBuyCommentModel>();
            DefaultPictureModel = new ShareBuyPictureModel();
        }
        public string Title { get; set; }

        public string Description { get; set; }

        public DateTime CreatedOnUtc { get; set; }

        public DateTime UpdatedOnUtc { get; set; }

        public int Likes { get; set; }

        public int NumberOfComments { get; set; }

        //default pictures
        public int DefaultPictureId { get; set; }
        public ShareBuyPictureModel DefaultPictureModel { get; set; }
        //comments
        public IList<ShareBuyCommentModel> ShareBuyCommentModels { get; set; }
    }
}